package com.itheima.reggie.service;

import com.itheima.reggie.entity.R;
import com.itheima.reggie.entity.ShoppingCart;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface ShoppingCartService {
    R<List<ShoppingCart>> list(Long userId);

    ShoppingCart add(ShoppingCart shoppingCart);

    void clean(Long userId);

    void updateNumberByDishId(String dishId);

    void updateNumberBySetmealId(String setmealId);
}
